


class Person {
    private String id, name;

    public Person() {}

    public Person(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() { return id; }
    public void setId(String id) { this.id = id; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }


    @Override
    public String toString() {
        return "Person{id='" + id + "', name='" + name + "'}";
    }
}

class Student extends Person {
    private int sid;

    public Student() {}

    public Student(String id, String name, int sid) {
        super(id, name);
        this.sid = sid;
    }

    public int getSid() { return sid; }
    public void setSid(int sid) { this.sid = sid; }

    @Override
    public String toString() {
        return "Student{sid=" + sid + ", id='" + getId() + "', name='" + getName() + "'}";
    }
}

public class MainClass {
    public static void main(String[] args) {
        Person p = new Person("123", "John");
        System.out.println(p);

        Student s = new Student("456", "Jane", 1);
        System.out.println(s);
    }
}
